package com.bawei.play.api

import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.VideoEntity
import com.bawei.http.ApiBaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

interface PlayServerApi {
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page: Int, @Query("pagesize") pageSize:Int): ApiBaseResponse<List<VideoEntity>>

    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId: String, @Query("page") page: Int, @Query("pagesize") pageSize:Int): ApiBaseResponse<List<VideoEntity>>

    @GET("/comment/getCommentByUserId")
    suspend fun getVideoCommends(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): ApiBaseResponse<List<CommendEntity>>


}